using System;
using System.Data;

namespace ChatMobile {
	class Messages {

		public Messages(DataRow row) {
			id = (Int64)row["ID"];
			text = (String)row["Text"];
			data = (DateTime)row["Data"];
			//isnew = (Boolean)row["New"];
			ufrom = (String)row["UFrom"];
			uto = (String)row["UTo"];
		}

        public Messages(string msg) {
            text = msg;
        }

		private Int64 id;

		public Int64 ID {
			get {
				return id;
			}
			set {
				id = value;
			}
		}

		private String text;

		public String Text {
			get {
				return text;
			}
			set {
				text = value;
			}
		}

		private DateTime data;

		public DateTime Data {
			get {
				return data;
			}
			set {
				data = value;
			}
		}

		private Boolean isnew;

		public Boolean New {
			get {
				return isnew;
			}
			set {
				isnew = value;
			}
		}

		private String ufrom;

		public String UFrom {
			get {
				return ufrom;
			}
			set {
				ufrom = value;
			}
		}

		private String uto;

		public String UTo {
			get {
				return uto;
			}
			set {
				uto = value;
			}
		}

	}
}

